(0) Obligation:

Clauses:

dis(or(B1, B2)) :- ','(con(B1), dis(B2)).
dis(B) :- con(B).
con(and(B1, B2)) :- ','(dis(B1), con(B2)).
con(B) :- bool(B).
bool(0).
bool(1).

Query: dis(g)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

conA(and(T32, T33)) :- pB(T32, T33).
conA(0).
conA(1).
pB(T32, T33) :- disC(T32).
pB(T32, T33) :- ','(disC(T32), conA(T33)).
disC(or(and(T14, T15), T5)) :- disC(T14).
disC(or(and(T14, T15), T5)) :- ','(disC(T14), conA(T15)).
disC(or(and(T14, T15), T5)) :- ','(disC(T14), ','(conA(T15), disC(T5))).
disC(or(0, T5)) :- disC(T5).
disC(or(1, T5)) :- disC(T5).
disC(or(T64, T65)) :- conA(or(T64, T65)).
disC(and(T76, T77)) :- pB(T76, T77).
disC(0).
disC(1).

Query: disC(g)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
disC_in: (b)
conA_in: (b)
pB_in: (b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

disC_in_g(or(and(T14, T15), T5)) → U4_g(T14, T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(T5, disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(T5, disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(T64, T65, conA_in_g(or(T64, T65)))
conA_in_g(and(T32, T33)) → U1_g(T32, T33, pB_in_gg(T32, T33))
pB_in_gg(T32, T33) → U2_gg(T32, T33, disC_in_g(T32))
disC_in_g(and(T76, T77)) → U10_g(T76, T77, pB_in_gg(T76, T77))
U10_g(T76, T77, pB_out_gg(T76, T77)) → disC_out_g(and(T76, T77))
disC_in_g(0) → disC_out_g(0)
disC_in_g(1) → disC_out_g(1)
U2_gg(T32, T33, disC_out_g(T32)) → pB_out_gg(T32, T33)
U2_gg(T32, T33, disC_out_g(T32)) → U3_gg(T32, T33, conA_in_g(T33))
conA_in_g(0) → conA_out_g(0)
conA_in_g(1) → conA_out_g(1)
U3_gg(T32, T33, conA_out_g(T33)) → pB_out_gg(T32, T33)
U1_g(T32, T33, pB_out_gg(T32, T33)) → conA_out_g(and(T32, T33))
U9_g(T64, T65, conA_out_g(or(T64, T65))) → disC_out_g(or(T64, T65))
U8_g(T5, disC_out_g(T5)) → disC_out_g(or(1, T5))
U7_g(T5, disC_out_g(T5)) → disC_out_g(or(0, T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → disC_out_g(or(and(T14, T15), T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → U5_g(T14, T15, T5, conA_in_g(T15))
U5_g(T14, T15, T5, conA_out_g(T15)) → disC_out_g(or(and(T14, T15), T5))
U5_g(T14, T15, T5, conA_out_g(T15)) → U6_g(T14, T15, T5, disC_in_g(T5))
U6_g(T14, T15, T5, disC_out_g(T5)) → disC_out_g(or(and(T14, T15), T5))

The argument filtering Pi contains the following mapping:
disC_in_g(x1)  =  disC_in_g(x1)
or(x1, x2)  =  or(x1, x2)
and(x1, x2)  =  and(x1, x2)
U4_g(x1, x2, x3, x4)  =  U4_g(x2, x3, x4)
0  =  0
U7_g(x1, x2)  =  U7_g(x2)
1  =  1
U8_g(x1, x2)  =  U8_g(x2)
U9_g(x1, x2, x3)  =  U9_g(x3)
conA_in_g(x1)  =  conA_in_g(x1)
U1_g(x1, x2, x3)  =  U1_g(x3)
pB_in_gg(x1, x2)  =  pB_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x2, x3)
U10_g(x1, x2, x3)  =  U10_g(x3)
pB_out_gg(x1, x2)  =  pB_out_gg
disC_out_g(x1)  =  disC_out_g
U3_gg(x1, x2, x3)  =  U3_gg(x3)
conA_out_g(x1)  =  conA_out_g
U5_g(x1, x2, x3, x4)  =  U5_g(x3, x4)
U6_g(x1, x2, x3, x4)  =  U6_g(x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

disC_in_g(or(and(T14, T15), T5)) → U4_g(T14, T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(T5, disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(T5, disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(T64, T65, conA_in_g(or(T64, T65)))
conA_in_g(and(T32, T33)) → U1_g(T32, T33, pB_in_gg(T32, T33))
pB_in_gg(T32, T33) → U2_gg(T32, T33, disC_in_g(T32))
disC_in_g(and(T76, T77)) → U10_g(T76, T77, pB_in_gg(T76, T77))
U10_g(T76, T77, pB_out_gg(T76, T77)) → disC_out_g(and(T76, T77))
disC_in_g(0) → disC_out_g(0)
disC_in_g(1) → disC_out_g(1)
U2_gg(T32, T33, disC_out_g(T32)) → pB_out_gg(T32, T33)
U2_gg(T32, T33, disC_out_g(T32)) → U3_gg(T32, T33, conA_in_g(T33))
conA_in_g(0) → conA_out_g(0)
conA_in_g(1) → conA_out_g(1)
U3_gg(T32, T33, conA_out_g(T33)) → pB_out_gg(T32, T33)
U1_g(T32, T33, pB_out_gg(T32, T33)) → conA_out_g(and(T32, T33))
U9_g(T64, T65, conA_out_g(or(T64, T65))) → disC_out_g(or(T64, T65))
U8_g(T5, disC_out_g(T5)) → disC_out_g(or(1, T5))
U7_g(T5, disC_out_g(T5)) → disC_out_g(or(0, T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → disC_out_g(or(and(T14, T15), T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → U5_g(T14, T15, T5, conA_in_g(T15))
U5_g(T14, T15, T5, conA_out_g(T15)) → disC_out_g(or(and(T14, T15), T5))
U5_g(T14, T15, T5, conA_out_g(T15)) → U6_g(T14, T15, T5, disC_in_g(T5))
U6_g(T14, T15, T5, disC_out_g(T5)) → disC_out_g(or(and(T14, T15), T5))

The argument filtering Pi contains the following mapping:
disC_in_g(x1)  =  disC_in_g(x1)
or(x1, x2)  =  or(x1, x2)
and(x1, x2)  =  and(x1, x2)
U4_g(x1, x2, x3, x4)  =  U4_g(x2, x3, x4)
0  =  0
U7_g(x1, x2)  =  U7_g(x2)
1  =  1
U8_g(x1, x2)  =  U8_g(x2)
U9_g(x1, x2, x3)  =  U9_g(x3)
conA_in_g(x1)  =  conA_in_g(x1)
U1_g(x1, x2, x3)  =  U1_g(x3)
pB_in_gg(x1, x2)  =  pB_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x2, x3)
U10_g(x1, x2, x3)  =  U10_g(x3)
pB_out_gg(x1, x2)  =  pB_out_gg
disC_out_g(x1)  =  disC_out_g
U3_gg(x1, x2, x3)  =  U3_gg(x3)
conA_out_g(x1)  =  conA_out_g
U5_g(x1, x2, x3, x4)  =  U5_g(x3, x4)
U6_g(x1, x2, x3, x4)  =  U6_g(x4)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

DISC_IN_G(or(and(T14, T15), T5)) → U4_G(T14, T15, T5, disC_in_g(T14))
DISC_IN_G(or(and(T14, T15), T5)) → DISC_IN_G(T14)
DISC_IN_G(or(0, T5)) → U7_G(T5, disC_in_g(T5))
DISC_IN_G(or(0, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(1, T5)) → U8_G(T5, disC_in_g(T5))
DISC_IN_G(or(1, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(T64, T65)) → U9_G(T64, T65, conA_in_g(or(T64, T65)))
DISC_IN_G(or(T64, T65)) → CONA_IN_G(or(T64, T65))
CONA_IN_G(and(T32, T33)) → U1_G(T32, T33, pB_in_gg(T32, T33))
CONA_IN_G(and(T32, T33)) → PB_IN_GG(T32, T33)
PB_IN_GG(T32, T33) → U2_GG(T32, T33, disC_in_g(T32))
PB_IN_GG(T32, T33) → DISC_IN_G(T32)
DISC_IN_G(and(T76, T77)) → U10_G(T76, T77, pB_in_gg(T76, T77))
DISC_IN_G(and(T76, T77)) → PB_IN_GG(T76, T77)
U2_GG(T32, T33, disC_out_g(T32)) → U3_GG(T32, T33, conA_in_g(T33))
U2_GG(T32, T33, disC_out_g(T32)) → CONA_IN_G(T33)
U4_G(T14, T15, T5, disC_out_g(T14)) → U5_G(T14, T15, T5, conA_in_g(T15))
U4_G(T14, T15, T5, disC_out_g(T14)) → CONA_IN_G(T15)
U5_G(T14, T15, T5, conA_out_g(T15)) → U6_G(T14, T15, T5, disC_in_g(T5))
U5_G(T14, T15, T5, conA_out_g(T15)) → DISC_IN_G(T5)

The TRS R consists of the following rules:

disC_in_g(or(and(T14, T15), T5)) → U4_g(T14, T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(T5, disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(T5, disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(T64, T65, conA_in_g(or(T64, T65)))
conA_in_g(and(T32, T33)) → U1_g(T32, T33, pB_in_gg(T32, T33))
pB_in_gg(T32, T33) → U2_gg(T32, T33, disC_in_g(T32))
disC_in_g(and(T76, T77)) → U10_g(T76, T77, pB_in_gg(T76, T77))
U10_g(T76, T77, pB_out_gg(T76, T77)) → disC_out_g(and(T76, T77))
disC_in_g(0) → disC_out_g(0)
disC_in_g(1) → disC_out_g(1)
U2_gg(T32, T33, disC_out_g(T32)) → pB_out_gg(T32, T33)
U2_gg(T32, T33, disC_out_g(T32)) → U3_gg(T32, T33, conA_in_g(T33))
conA_in_g(0) → conA_out_g(0)
conA_in_g(1) → conA_out_g(1)
U3_gg(T32, T33, conA_out_g(T33)) → pB_out_gg(T32, T33)
U1_g(T32, T33, pB_out_gg(T32, T33)) → conA_out_g(and(T32, T33))
U9_g(T64, T65, conA_out_g(or(T64, T65))) → disC_out_g(or(T64, T65))
U8_g(T5, disC_out_g(T5)) → disC_out_g(or(1, T5))
U7_g(T5, disC_out_g(T5)) → disC_out_g(or(0, T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → disC_out_g(or(and(T14, T15), T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → U5_g(T14, T15, T5, conA_in_g(T15))
U5_g(T14, T15, T5, conA_out_g(T15)) → disC_out_g(or(and(T14, T15), T5))
U5_g(T14, T15, T5, conA_out_g(T15)) → U6_g(T14, T15, T5, disC_in_g(T5))
U6_g(T14, T15, T5, disC_out_g(T5)) → disC_out_g(or(and(T14, T15), T5))

The argument filtering Pi contains the following mapping:
disC_in_g(x1)  =  disC_in_g(x1)
or(x1, x2)  =  or(x1, x2)
and(x1, x2)  =  and(x1, x2)
U4_g(x1, x2, x3, x4)  =  U4_g(x2, x3, x4)
0  =  0
U7_g(x1, x2)  =  U7_g(x2)
1  =  1
U8_g(x1, x2)  =  U8_g(x2)
U9_g(x1, x2, x3)  =  U9_g(x3)
conA_in_g(x1)  =  conA_in_g(x1)
U1_g(x1, x2, x3)  =  U1_g(x3)
pB_in_gg(x1, x2)  =  pB_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x2, x3)
U10_g(x1, x2, x3)  =  U10_g(x3)
pB_out_gg(x1, x2)  =  pB_out_gg
disC_out_g(x1)  =  disC_out_g
U3_gg(x1, x2, x3)  =  U3_gg(x3)
conA_out_g(x1)  =  conA_out_g
U5_g(x1, x2, x3, x4)  =  U5_g(x3, x4)
U6_g(x1, x2, x3, x4)  =  U6_g(x4)
DISC_IN_G(x1)  =  DISC_IN_G(x1)
U4_G(x1, x2, x3, x4)  =  U4_G(x2, x3, x4)
U7_G(x1, x2)  =  U7_G(x2)
U8_G(x1, x2)  =  U8_G(x2)
U9_G(x1, x2, x3)  =  U9_G(x3)
CONA_IN_G(x1)  =  CONA_IN_G(x1)
U1_G(x1, x2, x3)  =  U1_G(x3)
PB_IN_GG(x1, x2)  =  PB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x2, x3)
U10_G(x1, x2, x3)  =  U10_G(x3)
U3_GG(x1, x2, x3)  =  U3_GG(x3)
U5_G(x1, x2, x3, x4)  =  U5_G(x3, x4)
U6_G(x1, x2, x3, x4)  =  U6_G(x4)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

DISC_IN_G(or(and(T14, T15), T5)) → U4_G(T14, T15, T5, disC_in_g(T14))
DISC_IN_G(or(and(T14, T15), T5)) → DISC_IN_G(T14)
DISC_IN_G(or(0, T5)) → U7_G(T5, disC_in_g(T5))
DISC_IN_G(or(0, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(1, T5)) → U8_G(T5, disC_in_g(T5))
DISC_IN_G(or(1, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(T64, T65)) → U9_G(T64, T65, conA_in_g(or(T64, T65)))
DISC_IN_G(or(T64, T65)) → CONA_IN_G(or(T64, T65))
CONA_IN_G(and(T32, T33)) → U1_G(T32, T33, pB_in_gg(T32, T33))
CONA_IN_G(and(T32, T33)) → PB_IN_GG(T32, T33)
PB_IN_GG(T32, T33) → U2_GG(T32, T33, disC_in_g(T32))
PB_IN_GG(T32, T33) → DISC_IN_G(T32)
DISC_IN_G(and(T76, T77)) → U10_G(T76, T77, pB_in_gg(T76, T77))
DISC_IN_G(and(T76, T77)) → PB_IN_GG(T76, T77)
U2_GG(T32, T33, disC_out_g(T32)) → U3_GG(T32, T33, conA_in_g(T33))
U2_GG(T32, T33, disC_out_g(T32)) → CONA_IN_G(T33)
U4_G(T14, T15, T5, disC_out_g(T14)) → U5_G(T14, T15, T5, conA_in_g(T15))
U4_G(T14, T15, T5, disC_out_g(T14)) → CONA_IN_G(T15)
U5_G(T14, T15, T5, conA_out_g(T15)) → U6_G(T14, T15, T5, disC_in_g(T5))
U5_G(T14, T15, T5, conA_out_g(T15)) → DISC_IN_G(T5)

The TRS R consists of the following rules:

disC_in_g(or(and(T14, T15), T5)) → U4_g(T14, T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(T5, disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(T5, disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(T64, T65, conA_in_g(or(T64, T65)))
conA_in_g(and(T32, T33)) → U1_g(T32, T33, pB_in_gg(T32, T33))
pB_in_gg(T32, T33) → U2_gg(T32, T33, disC_in_g(T32))
disC_in_g(and(T76, T77)) → U10_g(T76, T77, pB_in_gg(T76, T77))
U10_g(T76, T77, pB_out_gg(T76, T77)) → disC_out_g(and(T76, T77))
disC_in_g(0) → disC_out_g(0)
disC_in_g(1) → disC_out_g(1)
U2_gg(T32, T33, disC_out_g(T32)) → pB_out_gg(T32, T33)
U2_gg(T32, T33, disC_out_g(T32)) → U3_gg(T32, T33, conA_in_g(T33))
conA_in_g(0) → conA_out_g(0)
conA_in_g(1) → conA_out_g(1)
U3_gg(T32, T33, conA_out_g(T33)) → pB_out_gg(T32, T33)
U1_g(T32, T33, pB_out_gg(T32, T33)) → conA_out_g(and(T32, T33))
U9_g(T64, T65, conA_out_g(or(T64, T65))) → disC_out_g(or(T64, T65))
U8_g(T5, disC_out_g(T5)) → disC_out_g(or(1, T5))
U7_g(T5, disC_out_g(T5)) → disC_out_g(or(0, T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → disC_out_g(or(and(T14, T15), T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → U5_g(T14, T15, T5, conA_in_g(T15))
U5_g(T14, T15, T5, conA_out_g(T15)) → disC_out_g(or(and(T14, T15), T5))
U5_g(T14, T15, T5, conA_out_g(T15)) → U6_g(T14, T15, T5, disC_in_g(T5))
U6_g(T14, T15, T5, disC_out_g(T5)) → disC_out_g(or(and(T14, T15), T5))

The argument filtering Pi contains the following mapping:
disC_in_g(x1)  =  disC_in_g(x1)
or(x1, x2)  =  or(x1, x2)
and(x1, x2)  =  and(x1, x2)
U4_g(x1, x2, x3, x4)  =  U4_g(x2, x3, x4)
0  =  0
U7_g(x1, x2)  =  U7_g(x2)
1  =  1
U8_g(x1, x2)  =  U8_g(x2)
U9_g(x1, x2, x3)  =  U9_g(x3)
conA_in_g(x1)  =  conA_in_g(x1)
U1_g(x1, x2, x3)  =  U1_g(x3)
pB_in_gg(x1, x2)  =  pB_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x2, x3)
U10_g(x1, x2, x3)  =  U10_g(x3)
pB_out_gg(x1, x2)  =  pB_out_gg
disC_out_g(x1)  =  disC_out_g
U3_gg(x1, x2, x3)  =  U3_gg(x3)
conA_out_g(x1)  =  conA_out_g
U5_g(x1, x2, x3, x4)  =  U5_g(x3, x4)
U6_g(x1, x2, x3, x4)  =  U6_g(x4)
DISC_IN_G(x1)  =  DISC_IN_G(x1)
U4_G(x1, x2, x3, x4)  =  U4_G(x2, x3, x4)
U7_G(x1, x2)  =  U7_G(x2)
U8_G(x1, x2)  =  U8_G(x2)
U9_G(x1, x2, x3)  =  U9_G(x3)
CONA_IN_G(x1)  =  CONA_IN_G(x1)
U1_G(x1, x2, x3)  =  U1_G(x3)
PB_IN_GG(x1, x2)  =  PB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x2, x3)
U10_G(x1, x2, x3)  =  U10_G(x3)
U3_GG(x1, x2, x3)  =  U3_GG(x3)
U5_G(x1, x2, x3, x4)  =  U5_G(x3, x4)
U6_G(x1, x2, x3, x4)  =  U6_G(x4)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 8 less nodes.

(8) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

U4_G(T14, T15, T5, disC_out_g(T14)) → U5_G(T14, T15, T5, conA_in_g(T15))
U5_G(T14, T15, T5, conA_out_g(T15)) → DISC_IN_G(T5)
DISC_IN_G(or(and(T14, T15), T5)) → U4_G(T14, T15, T5, disC_in_g(T14))
U4_G(T14, T15, T5, disC_out_g(T14)) → CONA_IN_G(T15)
CONA_IN_G(and(T32, T33)) → PB_IN_GG(T32, T33)
PB_IN_GG(T32, T33) → U2_GG(T32, T33, disC_in_g(T32))
U2_GG(T32, T33, disC_out_g(T32)) → CONA_IN_G(T33)
PB_IN_GG(T32, T33) → DISC_IN_G(T32)
DISC_IN_G(or(and(T14, T15), T5)) → DISC_IN_G(T14)
DISC_IN_G(or(0, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(1, T5)) → DISC_IN_G(T5)
DISC_IN_G(and(T76, T77)) → PB_IN_GG(T76, T77)

The TRS R consists of the following rules:

disC_in_g(or(and(T14, T15), T5)) → U4_g(T14, T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(T5, disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(T5, disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(T64, T65, conA_in_g(or(T64, T65)))
conA_in_g(and(T32, T33)) → U1_g(T32, T33, pB_in_gg(T32, T33))
pB_in_gg(T32, T33) → U2_gg(T32, T33, disC_in_g(T32))
disC_in_g(and(T76, T77)) → U10_g(T76, T77, pB_in_gg(T76, T77))
U10_g(T76, T77, pB_out_gg(T76, T77)) → disC_out_g(and(T76, T77))
disC_in_g(0) → disC_out_g(0)
disC_in_g(1) → disC_out_g(1)
U2_gg(T32, T33, disC_out_g(T32)) → pB_out_gg(T32, T33)
U2_gg(T32, T33, disC_out_g(T32)) → U3_gg(T32, T33, conA_in_g(T33))
conA_in_g(0) → conA_out_g(0)
conA_in_g(1) → conA_out_g(1)
U3_gg(T32, T33, conA_out_g(T33)) → pB_out_gg(T32, T33)
U1_g(T32, T33, pB_out_gg(T32, T33)) → conA_out_g(and(T32, T33))
U9_g(T64, T65, conA_out_g(or(T64, T65))) → disC_out_g(or(T64, T65))
U8_g(T5, disC_out_g(T5)) → disC_out_g(or(1, T5))
U7_g(T5, disC_out_g(T5)) → disC_out_g(or(0, T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → disC_out_g(or(and(T14, T15), T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → U5_g(T14, T15, T5, conA_in_g(T15))
U5_g(T14, T15, T5, conA_out_g(T15)) → disC_out_g(or(and(T14, T15), T5))
U5_g(T14, T15, T5, conA_out_g(T15)) → U6_g(T14, T15, T5, disC_in_g(T5))
U6_g(T14, T15, T5, disC_out_g(T5)) → disC_out_g(or(and(T14, T15), T5))

The argument filtering Pi contains the following mapping:
disC_in_g(x1)  =  disC_in_g(x1)
or(x1, x2)  =  or(x1, x2)
and(x1, x2)  =  and(x1, x2)
U4_g(x1, x2, x3, x4)  =  U4_g(x2, x3, x4)
0  =  0
U7_g(x1, x2)  =  U7_g(x2)
1  =  1
U8_g(x1, x2)  =  U8_g(x2)
U9_g(x1, x2, x3)  =  U9_g(x3)
conA_in_g(x1)  =  conA_in_g(x1)
U1_g(x1, x2, x3)  =  U1_g(x3)
pB_in_gg(x1, x2)  =  pB_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x2, x3)
U10_g(x1, x2, x3)  =  U10_g(x3)
pB_out_gg(x1, x2)  =  pB_out_gg
disC_out_g(x1)  =  disC_out_g
U3_gg(x1, x2, x3)  =  U3_gg(x3)
conA_out_g(x1)  =  conA_out_g
U5_g(x1, x2, x3, x4)  =  U5_g(x3, x4)
U6_g(x1, x2, x3, x4)  =  U6_g(x4)
DISC_IN_G(x1)  =  DISC_IN_G(x1)
U4_G(x1, x2, x3, x4)  =  U4_G(x2, x3, x4)
CONA_IN_G(x1)  =  CONA_IN_G(x1)
PB_IN_GG(x1, x2)  =  PB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x2, x3)
U5_G(x1, x2, x3, x4)  =  U5_G(x3, x4)

We have to consider all (P,R,Pi)-chains

(9) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(10) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

U4_G(T14, T15, T5, disC_out_g(T14)) → U5_G(T14, T15, T5, conA_in_g(T15))
U5_G(T14, T15, T5, conA_out_g(T15)) → DISC_IN_G(T5)
DISC_IN_G(or(and(T14, T15), T5)) → U4_G(T14, T15, T5, disC_in_g(T14))
U4_G(T14, T15, T5, disC_out_g(T14)) → CONA_IN_G(T15)
CONA_IN_G(and(T32, T33)) → PB_IN_GG(T32, T33)
PB_IN_GG(T32, T33) → U2_GG(T32, T33, disC_in_g(T32))
U2_GG(T32, T33, disC_out_g(T32)) → CONA_IN_G(T33)
PB_IN_GG(T32, T33) → DISC_IN_G(T32)
DISC_IN_G(or(and(T14, T15), T5)) → DISC_IN_G(T14)
DISC_IN_G(or(0, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(1, T5)) → DISC_IN_G(T5)
DISC_IN_G(and(T76, T77)) → PB_IN_GG(T76, T77)

The TRS R consists of the following rules:

conA_in_g(and(T32, T33)) → U1_g(T32, T33, pB_in_gg(T32, T33))
conA_in_g(0) → conA_out_g(0)
conA_in_g(1) → conA_out_g(1)
disC_in_g(or(and(T14, T15), T5)) → U4_g(T14, T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(T5, disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(T5, disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(T64, T65, conA_in_g(or(T64, T65)))
disC_in_g(and(T76, T77)) → U10_g(T76, T77, pB_in_gg(T76, T77))
disC_in_g(0) → disC_out_g(0)
disC_in_g(1) → disC_out_g(1)
U1_g(T32, T33, pB_out_gg(T32, T33)) → conA_out_g(and(T32, T33))
U4_g(T14, T15, T5, disC_out_g(T14)) → disC_out_g(or(and(T14, T15), T5))
U4_g(T14, T15, T5, disC_out_g(T14)) → U5_g(T14, T15, T5, conA_in_g(T15))
U7_g(T5, disC_out_g(T5)) → disC_out_g(or(0, T5))
U8_g(T5, disC_out_g(T5)) → disC_out_g(or(1, T5))
U10_g(T76, T77, pB_out_gg(T76, T77)) → disC_out_g(and(T76, T77))
pB_in_gg(T32, T33) → U2_gg(T32, T33, disC_in_g(T32))
U5_g(T14, T15, T5, conA_out_g(T15)) → disC_out_g(or(and(T14, T15), T5))
U5_g(T14, T15, T5, conA_out_g(T15)) → U6_g(T14, T15, T5, disC_in_g(T5))
U2_gg(T32, T33, disC_out_g(T32)) → pB_out_gg(T32, T33)
U2_gg(T32, T33, disC_out_g(T32)) → U3_gg(T32, T33, conA_in_g(T33))
U6_g(T14, T15, T5, disC_out_g(T5)) → disC_out_g(or(and(T14, T15), T5))
U3_gg(T32, T33, conA_out_g(T33)) → pB_out_gg(T32, T33)

The argument filtering Pi contains the following mapping:
disC_in_g(x1)  =  disC_in_g(x1)
or(x1, x2)  =  or(x1, x2)
and(x1, x2)  =  and(x1, x2)
U4_g(x1, x2, x3, x4)  =  U4_g(x2, x3, x4)
0  =  0
U7_g(x1, x2)  =  U7_g(x2)
1  =  1
U8_g(x1, x2)  =  U8_g(x2)
U9_g(x1, x2, x3)  =  U9_g(x3)
conA_in_g(x1)  =  conA_in_g(x1)
U1_g(x1, x2, x3)  =  U1_g(x3)
pB_in_gg(x1, x2)  =  pB_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x2, x3)
U10_g(x1, x2, x3)  =  U10_g(x3)
pB_out_gg(x1, x2)  =  pB_out_gg
disC_out_g(x1)  =  disC_out_g
U3_gg(x1, x2, x3)  =  U3_gg(x3)
conA_out_g(x1)  =  conA_out_g
U5_g(x1, x2, x3, x4)  =  U5_g(x3, x4)
U6_g(x1, x2, x3, x4)  =  U6_g(x4)
DISC_IN_G(x1)  =  DISC_IN_G(x1)
U4_G(x1, x2, x3, x4)  =  U4_G(x2, x3, x4)
CONA_IN_G(x1)  =  CONA_IN_G(x1)
PB_IN_GG(x1, x2)  =  PB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x2, x3)
U5_G(x1, x2, x3, x4)  =  U5_G(x3, x4)

We have to consider all (P,R,Pi)-chains

(11) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U4_G(T15, T5, disC_out_g) → U5_G(T5, conA_in_g(T15))
U5_G(T5, conA_out_g) → DISC_IN_G(T5)
DISC_IN_G(or(and(T14, T15), T5)) → U4_G(T15, T5, disC_in_g(T14))
U4_G(T15, T5, disC_out_g) → CONA_IN_G(T15)
CONA_IN_G(and(T32, T33)) → PB_IN_GG(T32, T33)
PB_IN_GG(T32, T33) → U2_GG(T33, disC_in_g(T32))
U2_GG(T33, disC_out_g) → CONA_IN_G(T33)
PB_IN_GG(T32, T33) → DISC_IN_G(T32)
DISC_IN_G(or(and(T14, T15), T5)) → DISC_IN_G(T14)
DISC_IN_G(or(0, T5)) → DISC_IN_G(T5)
DISC_IN_G(or(1, T5)) → DISC_IN_G(T5)
DISC_IN_G(and(T76, T77)) → PB_IN_GG(T76, T77)

The TRS R consists of the following rules:

conA_in_g(and(T32, T33)) → U1_g(pB_in_gg(T32, T33))
conA_in_g(0) → conA_out_g
conA_in_g(1) → conA_out_g
disC_in_g(or(and(T14, T15), T5)) → U4_g(T15, T5, disC_in_g(T14))
disC_in_g(or(0, T5)) → U7_g(disC_in_g(T5))
disC_in_g(or(1, T5)) → U8_g(disC_in_g(T5))
disC_in_g(or(T64, T65)) → U9_g(conA_in_g(or(T64, T65)))
disC_in_g(and(T76, T77)) → U10_g(pB_in_gg(T76, T77))
disC_in_g(0) → disC_out_g
disC_in_g(1) → disC_out_g
U1_g(pB_out_gg) → conA_out_g
U4_g(T15, T5, disC_out_g) → disC_out_g
U4_g(T15, T5, disC_out_g) → U5_g(T5, conA_in_g(T15))
U7_g(disC_out_g) → disC_out_g
U8_g(disC_out_g) → disC_out_g
U10_g(pB_out_gg) → disC_out_g
pB_in_gg(T32, T33) → U2_gg(T33, disC_in_g(T32))
U5_g(T5, conA_out_g) → disC_out_g
U5_g(T5, conA_out_g) → U6_g(disC_in_g(T5))
U2_gg(T33, disC_out_g) → pB_out_gg
U2_gg(T33, disC_out_g) → U3_gg(conA_in_g(T33))
U6_g(disC_out_g) → disC_out_g
U3_gg(conA_out_g) → pB_out_gg

The set Q consists of the following terms:

conA_in_g(x0)
disC_in_g(x0)
U1_g(x0)
U4_g(x0, x1, x2)
U7_g(x0)
U8_g(x0)
U10_g(x0)
pB_in_gg(x0, x1)
U5_g(x0, x1)
U2_gg(x0, x1)
U6_g(x0)
U3_gg(x0)

We have to consider all (P,Q,R)-chains.

(13) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • U5_G(T5, conA_out_g) → DISC_IN_G(T5)
    The graph contains the following edges 1 >= 1

  • DISC_IN_G(or(and(T14, T15), T5)) → U4_G(T15, T5, disC_in_g(T14))
    The graph contains the following edges 1 > 1, 1 > 2

  • U4_G(T15, T5, disC_out_g) → U5_G(T5, conA_in_g(T15))
    The graph contains the following edges 2 >= 1

  • DISC_IN_G(and(T76, T77)) → PB_IN_GG(T76, T77)
    The graph contains the following edges 1 > 1, 1 > 2

  • U4_G(T15, T5, disC_out_g) → CONA_IN_G(T15)
    The graph contains the following edges 1 >= 1

  • PB_IN_GG(T32, T33) → DISC_IN_G(T32)
    The graph contains the following edges 1 >= 1

  • CONA_IN_G(and(T32, T33)) → PB_IN_GG(T32, T33)
    The graph contains the following edges 1 > 1, 1 > 2

  • PB_IN_GG(T32, T33) → U2_GG(T33, disC_in_g(T32))
    The graph contains the following edges 2 >= 1

  • U2_GG(T33, disC_out_g) → CONA_IN_G(T33)
    The graph contains the following edges 1 >= 1

  • DISC_IN_G(or(and(T14, T15), T5)) → DISC_IN_G(T14)
    The graph contains the following edges 1 > 1

  • DISC_IN_G(or(0, T5)) → DISC_IN_G(T5)
    The graph contains the following edges 1 > 1

  • DISC_IN_G(or(1, T5)) → DISC_IN_G(T5)
    The graph contains the following edges 1 > 1

(14) YES